home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / g_man / cat3 / standard / splf.z / splf
Encoding:
Text File  |  1998-10-20  |  5.4 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ssssppppllllffff((((3333GGGG))))                                                              ssssppppllllffff((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ssssppppllllffff,,,, ssssppppllllffffiiii,,,, ssssppppllllffffssss,,,, ssssppppllllffff2222,,,, ssssppppllllffff2222iiii,,,, ssssppppllllffff2222ssss - draws a shaded filled polygon
  10.  
  11. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      vvvvooooiiiidddd ssssppppllllffff((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy,,,, iiiiaaaarrrrrrrraaaayyyy))))
  13.      lllloooonnnngggg nnnn;;;;
  14.      CCCCoooooooorrrrdddd ppppaaaarrrrrrrraaaayyyy[[[[]]]][[[[3333]]]];;;;
  15.      CCCCoooolllloooorrrriiiinnnnddddeeeexxxx iiiiaaaarrrrrrrraaaayyyy[[[[]]]];;;;
  16.  
  17.      vvvvooooiiiidddd ssssppppllllffffiiii((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy,,,, iiiiaaaarrrrrrrraaaayyyy))))
  18.      lllloooonnnngggg nnnn;;;;
  19.      IIIIccccoooooooorrrrdddd ppppaaaarrrrrrrraaaayyyy[[[[]]]][[[[3333]]]];;;;
  20.      CCCCoooolllloooorrrriiiinnnnddddeeeexxxx iiiiaaaarrrrrrrraaaayyyy[[[[]]]];;;;
  21.  
  22.      vvvvooooiiiidddd ssssppppllllffffssss((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy,,,, iiiiaaaarrrrrrrraaaayyyy))))
  23.      lllloooonnnngggg nnnn;;;;
  24.      SSSSccccoooooooorrrrdddd ppppaaaarrrrrrrraaaayyyy[[[[]]]][[[[3333]]]];;;;
  25.      CCCCoooolllloooorrrriiiinnnnddddeeeexxxx iiiiaaaarrrrrrrraaaayyyy[[[[]]]];;;;
  26.  
  27.      vvvvooooiiiidddd ssssppppllllffff2222((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy,,,, iiiiaaaarrrrrrrraaaayyyy))))
  28.      lllloooonnnngggg nnnn;;;;
  29.      CCCCoooooooorrrrdddd ppppaaaarrrrrrrraaaayyyy[[[[]]]][[[[2222]]]];;;;
  30.      CCCCoooolllloooorrrriiiinnnnddddeeeexxxx iiiiaaaarrrrrrrraaaayyyy[[[[]]]];;;;
  31.  
  32.      vvvvooooiiiidddd ssssppppllllffff2222iiii((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy,,,, iiiiaaaarrrrrrrraaaayyyy))))
  33.      lllloooonnnngggg nnnn;;;;
  34.      IIIIccccoooooooorrrrdddd ppppaaaarrrrrrrraaaayyyy[[[[]]]][[[[2222]]]];;;;
  35.      CCCCoooolllloooorrrriiiinnnnddddeeeexxxx iiiiaaaarrrrrrrraaaayyyy[[[[]]]];;;;
  36.  
  37.      vvvvooooiiiidddd ssssppppllllffff2222ssss((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy,,,, iiiiaaaarrrrrrrraaaayyyy))))
  38.      lllloooonnnngggg nnnn;;;;
  39.      SSSSccccoooooooorrrrdddd ppppaaaarrrrrrrraaaayyyy[[[[]]]][[[[2222]]]];;;;
  40.      CCCCoooolllloooorrrriiiinnnnddddeeeexxxx iiiiaaaarrrrrrrraaaayyyy[[[[]]]];;;;
  41.  
  42.      All of the above routines are functionally the same.  They differ only in
  43.      the type declarations of their parameters and in whether they assume a
  44.      two- or three-dimensional space.
  45.  
  46. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  47.      _n        expects the number of vertices in the polygon.  There can be no
  48.               more than 256 vertices in a single polygon.
  49.  
  50.      _p_a_r_r_a_y   expects an array containing the vertices of a polygon.
  51.  
  52.      _i_a_r_r_a_y   expects the array containing the color map indices which
  53.               determine the intensities of the vertices of the polygon
  54.  
  55. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  56.      ssssppppllllffff draws Gouraud-shaded polygons using the current pattern and
  57.      writemask.  Polygons are represented as arrays of points.  The first and
  58.      last points automatically connect to close a polygon.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ssssppppllllffff((((3333GGGG))))                                                              ssssppppllllffff((((3333GGGG))))
  71.  
  72.  
  73.  
  74.      If you want to use bbbbaaaacccckkkkffffaaaacccceeee, you should specify the vertices in counter-
  75.      clockwise order.
  76.  
  77.      After the polygon is drawn, the current graphics position is set to the
  78.      first point in the array.
  79.  
  80.      ssssppppllllffff must be used in color map mode.
  81.  
  82. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  83.      backface, cmode, concave, poly, rect, rectf, pdr, pmv, rpdr, rpmv
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.